package cn.stylefeng.guns.modular.weixin.error;

import org.springframework.stereotype.*;
import org.springframework.boot.web.server.*;
import org.springframework.http.*;

@Component
public class ErrorPageConfiguration implements ErrorPageRegistrar
{
    public void registerErrorPages(final ErrorPageRegistry errorPageRegistry) {
        errorPageRegistry.addErrorPages(new ErrorPage[] { new ErrorPage(HttpStatus.NOT_FOUND, "/error/404"), new ErrorPage(HttpStatus.INTERNAL_SERVER_ERROR, "/error/500") });
    }
}
